// extract module
var connect = require('connect');

// create server
var server = connect.createServer();

// use static middleware
server.use(connect.static(__dirname + '/resources'));

// register request handler
server.use(function(request, response) {
	// respond
	response.writeHead(200, {'Content-Type': 'text/html'});
	response.end('<img src="/Example.jpg" width="100%"/>');
});

// run server
server.listen(52273, function() {
	console.log('Server running at http://127.0.0.1:52273');
});